<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
<title>Insert title here</title>
</head>
<body>
<span th:if="${#fields.hasErrors('${userBean.*}')}"><span th:errors="${userBean.*}"></span></span>
<div><span th:text="${message}"></span></div>
<form action="initadd" th:object="${userBean}" method="post" >
<table>
<tr><td>ID:<input name="userId" type="text"/></td></tr>
<tr><td>用户名:<input name="userName" type="text"/></td></tr>
<tr><td>密码:<input name="userPassword" type="password"/></td></tr>
<tr><td>确认密码:<input name="rePassword" type="password"/></td></tr>
<tr><td><button type="submit" name="zhuce">注册</button>
     <button type="submit" name="reset">返回首页</button></td>
 </tr>
</table>
</form>	
</body>
</html>